package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.PostBankCardDO;
import com.mhc.suzuki.dal.query.PostBankCardQuery;

import java.util.List;


/**
 * Manager for PostBankCard.
 */
public interface PostBankCardManager {
    /**
     * query count by query condition.
     */
    int countByQuery(PostBankCardQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(PostBankCardQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(PostBankCardDO record);

    /**
     * insert selective.
     */
    long insertSelective(PostBankCardDO record);

    /**
     * select by query condition.
     */
    List<PostBankCardDO> selectByQuery(PostBankCardQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<PostBankCardDO> selectByQueryWithPage(PostBankCardQuery query);

    /**
     * select by primary key.
     */
    PostBankCardDO selectByPrimaryKey(Long id);

    /**
     * select by order no.
     */
    PostBankCardDO selectByOrderNo(String orderNo);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( PostBankCardDO record,  PostBankCardQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(PostBankCardDO record, PostBankCardQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(PostBankCardDO record);
}
